var express = require('express');
var router = express.Router();

/* GET users listing. */
router.get('/', function (req, res, next) {
    if (req.query.id == 1) {
        res.send({
            code: 200,
            message: 'success',
            data: {
                roleName: '超级管理员',
                roleKey: 'admin',
                status: 1,
                remark: '超级管理员',
                menuIds: [1, 3, 5, 6]
            }
        })
    }else {
        res.send({
            code: 401,
            message: 'success',
            data: {
                roleName: '普通用户',
                roleKey: 'common',
                status: 0,
                remark: '普通用户',
                menuIds: [1, 4, 8, 9]
            }
        })
    }


});

module.exports = router;
